<div class="form-inline" role="form">
  <div class="form-group">
    <label class="input-xs" for="startDate">时间范围</label>
    <input type="date" class="form-control input-sm" id="startDate" value="{{startTime}}" name="startTime" [(ngModel)]="startTime" name="name"
     #name="ngModel">
  </div>
  <div class="form-group">
    <label class="input-xs" for="endDate">-</label>
    <input type="date" id="endDate" class="form-control input-sm" value="{{endTime}}" name="endTime" [(ngModel)]="endTime" name="name"
     #name="ngModel">
  </div>
  <button class="btn btn-primary btn-sm" (click)="changeTime(startTime+';'+endTime)">查询</button>
</div>
